//
//  InterviewDescriptionVC.m
//  ATAInterview
//
//  Created by up72-17 on 2018/12/12.
//  Copyright © 2018 up72-17. All rights reserved.
//

#import "InterviewDescriptionVC.h"

@interface InterviewDescriptionVC ()

@end

@implementation InterviewDescriptionVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}



- (IBAction)backButtonAction:(UIButton *)sender {
    NSArray *temp = self.navigationController.viewControllers;
    for (NSInteger i = 0; i < [temp count]; i++) {
        id tempvc = [temp objectAtIndex:i];
        if ([tempvc isKindOfClass:[MainVC class]]) {
            [self.navigationController popToViewController:tempvc animated:YES];
            return;
        }
    }
}

- (IBAction)startbuttonAction:(id)sender {
    [[GlobalData sharedGlobalData] setQuestionIndex:0];
    [[GlobalData sharedGlobalData] setIsSimulation:NO];
    
    AudioQuestionsVC *audioQuestions = [[AudioQuestionsVC alloc] init];
    [self.navigationController pushViewController:audioQuestions animated:YES];
}





@end
